package com.lh.自己动手写RPC.MyService;

import com.lh.自己动手写RPC.RPCClient;

import java.net.InetSocketAddress;

/**
 * 作者：idea
 * 日期：2018/7/3
 * 描述：
 */
public class CheckServiceClient {
    public static void main(String[] args) {
        ICheckService checkService= RPCClient.getRemoteProxyObj(ICheckService.class,new InetSocketAddress("localhost",8088));
        checkService.fail();
        checkService.pass();
    }
}
